<?php

 $name = isset($_GET['name']) ? $_GET['name'] : 'number1';
 $ib_id = isset($_GET['ib_id']) ? $_GET['ib_id'] : '1';
 if($name == 'number1'){
     die('参数错误');
 }
//连接数据库
$db = new mysqli('localhost', 'root', 'root', 'tt');
//连接数据库判断
if ($db->connect_error) {
    die("连接失败: " . $db->connect_error);
}
$sql = "SELECT * FROM churu_jiekou where name = '".$name."' and ib_id = '".$ib_id."'";
$result = $db->query($sql);

if ($result->num_rows <= 0) {
    // 输出数据
    //echo "发送成功";
    $db->close();
    die('error：查询失败，无此数据!');
}
